package com.swu.cx.kotlinmodule.proxy

class Agent constructor(): RentHouse {

    private var rentHouse: RentHouse? = null

    constructor(rentHouse: RentHouse): this() {
        this.rentHouse = rentHouse
    }

    override fun findHouse() {
        before()
        rentHouse?.findHouse()
        after()
    }

    private fun before() {
        println("开始服务....")
    }

    private fun after() {
        println("给个五星好评奥")
    }

}